package com.xcesys.extras.testcase.ws;

import java.util.Collection;

import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.Assert;

import com.xcesys.extras.core.constant.LookupTypeConstants;
import com.xcesys.extras.dataobject.lookup.ValueLabelItem;
import com.xcesys.extras.remoting.lookup.RLookupService;
import com.xcesys.extras.test.AbstractTransactionalJUnit4ServiceTestCase;

public class WSLookupServiceTestCase extends
		AbstractTransactionalJUnit4ServiceTestCase {
	@Autowired
	private RLookupService service = null;

	@Test
	public void findObjectsWithCodeName() {
		Collection<ValueLabelItem> items = service.findObjectsByCodeLabel(
				LookupTypeConstants.LOOKUP_MASTER_DEPT, null, null);
		Assert.isTrue(!items.isEmpty());
	}
}
